package com.cf.dao;

import com.cf.entity.AccountType;
import com.cf.entity.AccountTypeIdType;

import java.util.List;

public interface AccountTypeIdTypeDao {
    //查询中间关联数据
    public List<AccountTypeIdType> selectAllAccountTypeAndidType();

    //添加中间数据
    public int addAccountTypeAndidType(AccountTypeIdType accountTypeIdType);

    //删除数据
    public int delAccountTypeAndidType(AccountTypeIdType accountTypeIdType);

    //通过两个id查找
    public int selectById(AccountTypeIdType accountTypeIdType);

    //通过accountid查找
    public List<AccountTypeIdType> selectByaccountid(long accountid);

    //通过papersid查找
    public List<AccountTypeIdType> selectBypapersid(long papersid);
}
